package com.yuanzi.base.enums;

import java.util.HashMap;
import java.util.Map;

public enum ClientType {

	WEB(0, "web"), 
	ANDROID(1, "Android"),
	IPHONE(2, "iPhone"),
	WX_MINI_PROG(3, "WX_MINI_PROG");

	private Integer value;
	private String displayName;
	
	public static Map<String, ClientType> displayMap = new HashMap<String, ClientType>();
	static {
	        for (ClientType item : ClientType.values()) {
	        	displayMap.put(item.displayName, item);
	       }
	}

	ClientType(Integer value, String displayName) {
		this.value = value;
		this.displayName = displayName;
	}

	public String getDisplayName() {
		return displayName;
	}

	public Integer getValue() {
		return value;
	}
}
